﻿<!DOCTYPE html>
<html>
<head>
    <meta content="text/html; charset=utf-8" />

    <title>@(ViewBag.Title ?? "LHRAF")</title>
	
    <link href="@Url.Content("~/Content/rcarousel.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Site.css?1234")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/fullcalendar.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/dcmegamenu.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/smoothness/jquery-ui-1.8.21.custom.css")" rel="stylesheet" type="text/css" />

    
    <script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.21.custom.min.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery.hoverIntent.minified.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.dcmegamenu.1.3.3.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.ui.rcarousel.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-timepicker-addon.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.qtip-1.0.0-rc3.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/fullcalendar.min.js")" type="text/javascript"></script>

    <!--[if lt IE 9]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
    <![endif]-->

    <script type="text/javascript">
        $(document).ready(function () {
            $('#mega-menu-1').dcMegaMenu();

            $('#dialog_logon').dialog({
                autoOpen: false,
                modal: true,
                draggable: false,
                resizable: false,
                width: 400,
                height: 'auto',
                title: '@BenzInfo.Hockey.LHRAF.Resources.Dictionary.Login',
                buttons: [
                    {
                        id: 'dialog_btn_login', text: '@BenzInfo.Hockey.LHRAF.Resources.Dictionary.Login',
                        click: function () {
                            $('form', this).submit();
                        }
                    },
                    {
                        id: 'dialog_btn_cancel', text: '@BenzInfo.Hockey.LHRAF.Resources.Dictionary.Cancel',
                        click: function () {
                            $(this).dialog('close');
                        }
                    }
                ]
            });

            $('#lnk_login').click(function () {
                var url = $(this).attr('href');

                $('#dialog_logon').empty().load(url, function () {

                    $('#dialog_logon').dialog('open');
                });

                return false;
            });
        });
    </script>

</head>
<body class="@ViewBag.Lang">
    <div id="dialog_logon"></div>
    <div id="page"> 
        <header>
            <div id="title">
                <span class="buttons">
                    @Html.ActionLink(" ", "Index", "Home", null, new { @id = "lnk_lhraf", @class = "lnk" })
                </span>
            </div>
            <div id="logoLRHAF"></div>
            <div class="separationbar"></div>
            <div id="leftmenu">
                @Html.ActionLink(" ", "Index", "Calendar", null, new { @class = "calendar" })
                @Html.ActionLink(" ", "Index", "Statistics", null, new { @class = "stats" })
                @Html.ActionLink(" ", "Index", "Teams", null, new { @class = "team" })
                @Html.ActionLink(" ", "Index", "Information", null, new { @class = "information" })     
            </div>
        </header>
        <section id="main">
            
            @if (ViewBag.CurrentUser != null)
            {
                <div id="admin">
                    @Html.Partial("Admin")
                </div>
            }
            <div id="renderBody">
                @RenderBody()
            </div>
        </section>
        
        <footer>
            <div id="signature">
                <span class="lbl lbl_signature"></span>
            </div>
            <div class="separationbar"></div>
            <div id="bottommenu">
                <span class="lbl lbl_bottommenu"><img src="content/images/menu_basdepage.png" usemap ="#bottommenumap" alt="No image found"/></span>
                <map name="bottommenumap" id="bottommenumap">
                  <area shape="rect" coords="0,0,142,40" href="Calendar/Index" alt="Calendrier" />
                  <area shape="rect" coords="143,0,286,40" href="Statistics/Index" alt="Statistiques" />
                  <area shape="rect" coords="287,0,429,40" href="Teams/Index" alt="Équipes" />
                  <area shape="rect" coords="430,0,569,40" href="Information/Index" alt="Informations" />
                </map> 
            </div>
            <div style="clear:both"></div>
        </footer>
    </div>
            <div id="login">
                @if (ViewBag.CurrentUser == null)
                {
                    @Html.ActionLink(BenzInfo.Hockey.LHRAF.Resources.Dictionary.Login, "LogOn", "Users", null, new { @id = "lnk_login" })                    
                }
            </div>
</body>
</html>
